//
//  DoubleColorProgressBar.h
//  SKPAD
//
//  Created by admin@amonline.com.cn on 15/6/2.
//  Copyright (c) 2015年 heeeruiii. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface ThreeColorProgressBar : UIControl

//实际值 在范围内的百分比值，用来设置角度
@property (nonatomic, assign) CGFloat realValue;
//最小值，默认是0
@property (nonatomic, assign) CGFloat maxValue;
//最大值，默认是100
@property (nonatomic, assign) CGFloat minValue;

//背景图片
@property (nonatomic, readonly) UIImageView *backgroundView;
//背景图片
@property (nonatomic, readonly) UIImageView *backgroundView2;

//刻度层
//渐变父级
@property (nonatomic) CALayer * layerScale;
//图层,截取渐变层用
@property (nonatomic, readonly, strong) CAShapeLayer *trackLayerScale;
//绿色颜色层
@property (nonatomic) CAGradientLayer * gradientLayerGreen;
//颜色渐变层
@property (nonatomic) CAGradientLayer * gradientLayerYellow;
//颜色渐变层
@property (nonatomic) CAGradientLayer * gradientLayerRed;

//实际值层
//渐变父级
@property (nonatomic) CALayer * layerReal;
//图层,截取渐变层用
@property (nonatomic, readonly, strong) CAShapeLayer *trackLayerReal;
//绿色颜色层
@property (nonatomic) CAGradientLayer * realLayerGreen;
//颜色渐变层
@property (nonatomic) CAGradientLayer * realLayerYellow;
//颜色渐变层
@property (nonatomic) CAGradientLayer * realLayerRed;

- (void)setMyRealValue:(CGFloat)realValue;
@end
